{include file="header.html"}
<script type="text/javascript">
    $(function(){
        $('#user_form').validate({
            errorPlacement: function(error, element){
                $(element).next('.field_notice').hide();
                $(element).after(error);
            },
            success       : function(label){
                label.addClass('right').text('OK!');
            },
            onkeyup    : false,
            rules : {
                user_name : {
                    required : true,
                    byteRange: [3,15,'{$charset}'],
                    remote   : {
                        url :'index.php?app=user&act=check_user',
                        type:'get',
                        data:{
                            user_name : function(){
                                return $('#user_name').val();
                            },
                            id : '{$user.user_id}'
                        }
                    }
                },
                password: {
                    <!--{if $smarty.get.act eq 'add'}-->
                    required : true,
                    <!--{/if}-->
                    maxlength: 20,
                    minlength: 6
                },
                zf_pass: {
                    <!--{if $smarty.get.act eq 'add'}-->
                    required : true,
                    <!--{/if}-->
                    maxlength: 20,
                    minlength: 6
                },
                email   : {
                    required : true,
                    email : true
                }
        {if !$set_avatar}
    ,
        portrait : {
            accept : 'png|gif|jpe?g'
        }
        {/if}
        },
        messages : {
            user_name : {
                required : '{$lang.user_not_empty}',
                    byteRange: '{$lang.user_length_limit}',
                    remote   : '{$lang.name_exist}'
            },
            password : {
                <!--{if $smarty.get.act eq 'add'}-->
                required : '{$lang.password_empty}',
                    <!--{/if}-->
                    maxlength: '{$lang.password_limit}',
                    minlength: '{$lang.password_limit}'
            },
            zf_pass : {
                <!--{if $smarty.get.act eq 'add'}-->
                required : '{$lang.password_empty}',
                    <!--{/if}-->
                    maxlength: '{$lang.password_limit}',
                    minlength: '{$lang.password_limit}'
            },
            email  : {
                required : '{$lang.email_not_empty}',
                    email   : '{$lang.currect_email}'
            }
            {if !$set_avatar}
        ,
            portrait : {
                accept : '{$lang.note_portrait}'
            }
            {/if}
            }
        });
        $('.edit_grade').click(function(){
            $(this).next('select').show();
            $(this).parent('td').children('.ugrade').remove();
            $(this).parent('td').children('span').remove();
            $(this).remove();
        })
    });
</script>
<div id="rightTop">
    <p>{$lang.order_manage}</p>
    <ul class="subnav">
        <li><span><a  class="btn1" href="index.php?app=order&act=index">{$lang.manage}</a></span></li>
        <li><span>{$lang.ask_customer}</span></li>
    </ul>
</div>
<div class="info">
    <form method="post" enctype="multipart/form-data" id="user_form">
        <table class="infoTable">

            <tr>
                <th class="paddingT15"> 操作:</th>
                <td class="paddingT15 wordSpacing5">
                    <p>
                        <!--<label>-->
                            <!--<input name="type" type="radio" value="2" checked="checked"/>-->
                        <!--</label>-->
                        <label>
                            <input type="radio" name="type" value="1" checked/>取消订单并申请退款
                        </label>
                    </p>
                </td>
            </tr>


            <tr>
                <th class="paddingT15"> 退款原因:</th>
                <td class="paddingT15 wordSpacing5">
                    <input class="infoTableInput2" id="refund_reason" type="text" name="refund_reason" style="width:300px" />
                    <label class="field_notice">请填写退款原因</label>
                </td>
            </tr>


            <tr>
                <th class="paddingT15"> 退款描述:</th>
                <td class="paddingT15 wordSpacing5">
                    <input class="infoTableInput2" name="refund_desc" type="text" id="refund_desc" style="width:300px"/>
                    <span class="field_notice">请填写退款描述</span>
                </td>
            </tr>
            <tr>
                <th class="paddingT15"> 收货情况:</th>
                <td class="paddingT15 wordSpacing5">
                    <input class="infoTableInput2" name="refund_shipped" type="text" id="refund_shipped" style="width:300px"/>
                    <span class="field_notice">请填写收货情况</span>
                </td>
            </tr>
            <tr>
                <th></th>
                <td class="ptb20"><input class="formbtn" type="submit" name="Submit" value="{$lang.submit}" />
                    <a href="javascript:history.back(-1)" class="btn1">返回</a>
                </td>
            </tr>
        </table>
    </form>
</div>
{include file="footer.html"}